﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ACA_Add.aspx.cs" Inherits="Web.admin.BasicManage.Academy.ACA_Add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript" language="javascript" >
         function CheckEmpty() {
           
            if( $(".class1").val()=="")
            {
                alert("学院名为必填项，不允许为空"); 
                return false;
            }
           else if ($(".class2").val() == "") {
                alert("学院号为必填项，不允许为空");
                return false;
            }
             else
                 return true;
         };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img  alt=""; src="../../images/main_hl.gif" /></td>
                        <td ><img alt=""; src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>学院管理</span></td>
                        <td><img alt=""; src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
     <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;基础数据管理&gt;学院管理</span>
            <div style="float:right; margin-right:5px;">
                    <a href="ACA_List.aspx">返回学院列表>></a>
                </div>
            </div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>学院名称</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxName" CssClass="class1" runat="server"></asp:TextBox>
                            <label>*</label>
                            <input type="hidden" id="ACAIDBOX" value="" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th>学院号</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxCode" CssClass="class2" runat="server"></asp:TextBox>
                            <label>*</label>                            
                        </td>
                    </tr>
                    <tr>
                        <th>学院简称</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxShort" runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                    <tr>
                        <th>院系英文名称</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxEnName" runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                    <tr>
                        <th>是否教学单位</th>
                        <td>
                        <asp:DropDownList runat="server" ID="DropDownListIsTeach" Width="155px">
                            <asp:ListItem runat="server" Value="是" Text="是"></asp:ListItem>
                            <asp:ListItem runat="server" Value="否" Text="否"></asp:ListItem>
                        </asp:DropDownList> 
                        </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td align="left">
                            <textarea runat="server" id="TextBoxRemark" rows="3"></textarea>                          
                        </td>
                    </tr>
                    <tr>
                        <th>所在校区</th>
                        <td align="left">
                            <asp:DropDownList ID="localList"  runat="server" Width="155px">
                                
                            </asp:DropDownList>                           
                        </td>
                    </tr>                   
                    <tr>
                        <td></td>
                        <td ><asp:Button ID="ButtonOK" CssClass="btn_reset" OnClientClick="return CheckEmpty()" runat="server" Text="保存" 
                                onclick="ButtonOK_Click" /></td>
                    </tr>
                </table>
            </div>
        </div>
     </div>
    </form>
</body>
</html>
